<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2021/12/28
 * Time: 20:59
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);

namespace app\web\controller;

use app\BaseController;
use EasyWeChat\Factory;
use think\App;

class WechatBase extends BaseController
{
    protected $wechat_app;
    protected $openid = "";

    public function __construct(App $app)
    {
        $this->wechat_app = Factory::officialAccount(config('wechat.wechat'));

        $this->openid = session(config('key.session_key'));
        parent::__construct($app);
    }

}